package com.letfox.user.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.letfox.redis.service.impl.RedisCacheBaseImpl;
import com.letfox.user.service.AccountCacheService;

@Service
public class AccountCacheServiceImpl extends RedisCacheBaseImpl<Object> implements AccountCacheService {

	@Override
	public Object getAccountServiceKey(String key) {
		return valueOperationUtil.getChcheObject(key);
	}

	@Override
	public void addAccountServiceKey(String key, String value) {
		valueOperationUtil.setCacheObject(key, value);
	}

	@Override
	public Map<String, Object> getAccountAuth(String key) {
		return hashCahceUtil.getCacheMap(key);
	}

	@Override
	public void addAccountAuth(String key, Map<String, Object> map) {
		hashCahceUtil.setCacheMap(key, map);
	}

}
